package com.qin.service.impl;

import java.util.List;

import com.qin.dao.OrderBookDao;
import com.qin.entity.OrderBook;
import com.qin.service.OrderBookService;

public class OrderBookServiceImpl implements OrderBookService {

	private OrderBookDao orderBookDao = new OrderBookDao();
	
	@Override
	public Long insertOrderBook(OrderBook orderBook) {
		return orderBookDao.insertOrderBook(orderBook);
	}

	@Override
	public List<OrderBook> queryOrdersBookByOrderId(Long id) {
		return orderBookDao.queryOrdersBookByOrderId(id);
	}

	@Override
	public int[] insertOrderBooks(List<OrderBook> orderBooks) {
		return orderBookDao.insertOrderBooks(orderBooks);
	}

}
